home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form DirectPrint
- Caption = "Direct Print"
- ClientHeight = 1605
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 4725
- Height = 2010
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 1605
- ScaleWidth = 4725
- Top = 1140
- Width = 4845
- Begin CommandButton buCommand
- Caption = "&Print"
- Height = 375
- Left = 1620
- TabIndex = 0
- Top = 990
- Width = 1005
- End
- Begin TextBox txtFile
- Height = 285
- Left = 450
- TabIndex = 2
- Text = "c:\autoexec.bat"
- Top = 540
- Width = 3795
- End
- Begin Label Label1
- Caption = "&Filename:"
- Height = 285
- Left = 450
- TabIndex = 1
- Top = 270
- Width = 2355
- End
- Sub buCommand_Click ()
- FileName$ = txtFile.Text
- rPrint% = PrintFile(FileName$)
- If rPrint% = 0 Then
- MsgBox "Could not print " + FileName$
- Else
- MsgBox "Printed " + FileName$
- End If
- End Sub
-